import service from '@/utils/request'
// @Tags AlbumDecorations
// @Summary 创建相册装饰管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.AlbumDecorations true "创建相册装饰管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /albumDecorations/createAlbumDecorations [post]
export const createAlbumDecorations = (data) => {
  return service({
    url: '/albumDecorations/createAlbumDecorations',
    method: 'post',
    data
  })
}

// @Tags AlbumDecorations
// @Summary 删除相册装饰管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.AlbumDecorations true "删除相册装饰管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /albumDecorations/deleteAlbumDecorations [delete]
export const deleteAlbumDecorations = (params) => {
  return service({
    url: '/albumDecorations/deleteAlbumDecorations',
    method: 'delete',
    params
  })
}

// @Tags AlbumDecorations
// @Summary 批量删除相册装饰管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除相册装饰管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /albumDecorations/deleteAlbumDecorations [delete]
export const deleteAlbumDecorationsByIds = (params) => {
  return service({
    url: '/albumDecorations/deleteAlbumDecorationsByIds',
    method: 'delete',
    params
  })
}

// @Tags AlbumDecorations
// @Summary 更新相册装饰管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.AlbumDecorations true "更新相册装饰管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /albumDecorations/updateAlbumDecorations [put]
export const updateAlbumDecorations = (data) => {
  return service({
    url: '/albumDecorations/updateAlbumDecorations',
    method: 'put',
    data
  })
}

// @Tags AlbumDecorations
// @Summary 用id查询相册装饰管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.AlbumDecorations true "用id查询相册装饰管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /albumDecorations/findAlbumDecorations [get]
export const findAlbumDecorations = (params) => {
  return service({
    url: '/albumDecorations/findAlbumDecorations',
    method: 'get',
    params
  })
}

// @Tags AlbumDecorations
// @Summary 分页获取相册装饰管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取相册装饰管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /albumDecorations/getAlbumDecorationsList [get]
export const getAlbumDecorationsList = (params) => {
  return service({
    url: '/albumDecorations/getAlbumDecorationsList',
    method: 'get',
    params
  })
}

// @Tags AlbumDecorations
// @Summary 不需要鉴权的相册装饰管理接口
// @Accept application/json
// @Produce application/json
// @Param data query yunxiangchuanReq.AlbumDecorationsSearch true "分页获取相册装饰管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /albumDecorations/getAlbumDecorationsPublic [get]
export const getAlbumDecorationsPublic = () => {
  return service({
    url: '/albumDecorations/getAlbumDecorationsPublic',
    method: 'get',
  })
}
